home *** CD-ROM | disk | FTP | other *** search
- Path: eql.caltech.edu!rankin
- From: rankin@eql.caltech.edu (Pat Rankin)
- Newsgroups: comp.lang.c
- Subject: Re: 2 C under VMS questions
- Date: 14 Jan 1996 15:57 PST
- Organization: California Institute of Technology
- Distribution: world
- Message-ID: <14JAN199615574362@eql.caltech.edu>
- References: <4d3eok$hm4@netope.harvard.edu>
- NNTP-Posting-Host: bear.eql.caltech.edu
- News-Software: VAX/VMS VNEWS 1.40x8
-
- In article <4d3eok$hm4@netope.harvard.edu>,\
- richard@phdcn.harvard.edu (Richard Congdon) writes...
- > A couple questions for VMS C gurus"
- >
- > 1) Is there any way to do this on VMS?
- > freopen(optarg,"rt",stdin)
- > This call fails. Do I want something other than stdin?
-
- Use mode "r" instead of "rt", or upgrade from obsolete VAX C to
- current DEC C so that you link against a different run-time library
- which will ignore excess junk like that trailing "t".
-
- > 2) Is there any functional equivalent to Unix ftruncate() or DOS chsize()?
-
- The DEC C V5.2 header files declare ftruncate(), but only if
- you're compiling on a VMS V7.0 system. We're running V6.2, which
- doesn't have it, so I don't know whether that function has truely
- been added nor whether it has any restrictions or limitations.
- Rolling your own is non-trivial, to put it mildly.
-
- Pat Rankin, rankin@eql.caltech.edu
-